package com.jinfang.bankpractice.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jinfang.bankpractice.mapper.DictionaryMapper;
import com.jinfang.bankpractice.model.Dictionary;

@Service
public class DictionaryService {
	
	@Resource
	private DictionaryMapper dictionaryMapper;
	
	public List<Dictionary> allCourse(){
		return dictionaryMapper.findByType("course");
	}
	
	public List<Dictionary> allQuesType(){
		return dictionaryMapper.findByType("qtype");
	}
	
}
